import request from "@renderer/utils/request";

// 模版市场
export function getPageList(query) {
  return request({
    url: `/snapshotTemplateInfo/getPageList`,
    method: "get",
    params: query,
  });
}

//添加到我的项目
export function addToMyProject(query) {
  return request({
    url: `/snapshotTemplateInfo/save`,
    method: "post",
    data: query,
  });
}

// 获取详情
export function getDetail(id) {
  return request({
    url: `/snapshotTemplateInfo/getInfo`,
    method: "get",
    params: { id },
  });
}
